//
//  TwoViewController.m
//  NXMainFrameObject
//
//  Created by 宋钢强 on 2018/4/13.
//  Copyright © 2018年 NiuTan. All rights reserved.
//

#import "TwoViewController.h"

@interface TwoViewController ()

@end

@implementation TwoViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    [self customNavItem];
}

#pragma mark - 定制导航条内容
- (void) customNavItem {
    self.title = @"消息";
    self.navigationController.navigationBar.tintColor = [UIColor redColor];
    self.navigationController.navigationBar.barTintColor = [UIColor greenColor];
    
    UIButton *leftBtn = [[UIButton alloc] init];
    [leftBtn setTitle:@"发现群" forState:UIControlStateNormal];
    [leftBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
    [leftBtn setTitleColor:[UIColor orangeColor] forState:UIControlStateHighlighted];
    [leftBtn addTarget:self action:@selector(leftAction) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:leftBtn];
    
}

- (void)leftAction {

}


@end
